namespace PropertyExpression.TypedDataBinding.Wpf.Controls
{
    public delegate void SendAction<T>(T s);

    public class TextBox: System.Windows.Controls.TextBox
    {
        public event SendAction<TextBox> TypedInit;

        public TextBox()
        {
            Initialized += delegate { if (TypedInit != null) TypedInit(this); };
        }
    }

    public class Label : System.Windows.Controls.Label
    {
        public event SendAction<Label> TypedInit;

        public Label()
        {
            Initialized += delegate { if (TypedInit != null) TypedInit(this); };
        }
    }
}